Class symantec.itools.db.beans.brl.adapter.ComputedColAdapter
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.db.beans.brl.adapter.ComputedColAdapter
Object
|
+----symantec.itools.db.beans.brl.adapter.ComputedColAdapter
- public abstract class ComputedColAdapter
- extends Object
- implements Serializable
Abstract Class which glues business rule implementation classes with
QueryNavigator, RecordDefinition and database events.
- Version:
- 1.0 07/24/98
- Author:
- Puru Balakrishnan
-
AGG_CALC_EXCP
-
-
COLUMNCHANGE
-
-
COLUMNSEPARATOR
-
-
FULLY_QUAL_NAME
-
-
MORETHANONE_QUERYNAV_EXCP
-
-
NO_CLASS_IMPL_EXCP
-
-
NO_CLASS_SPEC_EXCP
-
-
RECORDCHANGE
-
-
aggValue
-
-
aliasName
-
-
changeType
-
-
colNavListener
-
-
columnIndexSet
-
-
columnNameSet
-
-
computeRow
-
-
currQueryNav
-
-
dIController
-
-
dataSource
-
-
initialized
-
-
outputName
-
-
queryNavRegistered
-
-
recNavListener
-
-
recSavListener
-
-
sourceColumns
-
-
type
-
-
virtualColImplClass
-
-
virtualColImplObj
-
-
symantec.itools.db.beans.brl.adapter.ComputedColAdapter()
- Default constructor
-
buildAliasName(Class)
-
-
delegateComputation()
-
-
getAliasName()
- Get the alias name for the business rule bean which is
used to construct the data binding name.
-
getClassNameOnly(Class)
-
-
getDataBindingName()
- Method to return databinding name
-
getOutputName()
- Get the name for output from the business rule bean which is
used to construct the data binding name.
-
getOutputNameNotAvailMsg()
-
-
getSourceColumns()
- Get the comma separated list of columns participating in the rule
-
getType()
- Method to get the type of computed column
-
getVirtualColImplClass()
- Get the virtual column implementor class
-
initBeforeExecute()
-
-
initComputeRow(PersistentObject)
-
-
initComputeRow(Object, int)
-
-
initDataSource()
-
-
initSourceColumns(PersistentObject)
-
-
initSourceColumns(Object, int)
-
-
initSourceColumns(Object, String)
-
-
initSourceMembers()
-
-
initializeMember(CompColInputMember)
-
-
instantiateImplObj()
-
-
isAggValid()
-
-
isAllInputsInitialized()
-
-
isAllSourceInputsInitialized()
-
-
isBRLInterfaceImplemented(Class)
-
-
isColumnChangeInQBE()
-
-
isColumnInRule(int)
-
-
isColumnInRule(CompColInputMember[], int)
-
-
isColumnSpecialFeature(String)
-
-
isDataBindNameAvail()
-
-
isRuleOfAggregateType()
-
-
isRuleOfDerivationType()
-
-
isRuleOfValidationType()
-
-
performCalculation()
-
-
performDIValueChange(Object, String)
-
-
processAfterColumnChangeEvent(ColumnDataEvent)
-
-
processAfterRecordNavigateEvent(RecordNavigateEvent)
-
-
processAfterRecordSaveEvent(RecordSaveEvent)
-
-
processAggregateRowChange()
-
-
processBeforeColumnChangeEvent(ColumnDataEvent)
-
-
processBeforeRecordNavigateEvent(RecordNavigateEvent)
-
-
processBeforeRecordSaveEvent(RecordSaveEvent)
-
-
processBorderRecordEvent(RecordNavigateEvent)
-
-
processSingletonRowChange(RecordNavigateEvent)
-
-
processSingletonRowChange(ColumnDataEvent)
-
-
processSingletonRowChange(RecordSaveEvent)
-
-
processSingletonRowChange(PersistentObject)
-
-
reInitStatusForMembers()
-
-
reInitStatusForSourceMembers()
-
-
resetComputedValue()
-
-
setAliasName(String)
- Set the output column name used for constructing the data
binding name.
-
setOutputName(String)
- Set the output column name used for constructing the data
binding name.
-
setSourceColumns(CompColInputMember[])
- Set the list of columns participating in the rule
-
setVirtualColImplClass(Class)
- set the virtual column implementor class.
AGG_CALC_EXCP
public static java.lang.String AGG_CALC_EXCP
COLUMNCHANGE
public static final int COLUMNCHANGE
COLUMNSEPARATOR
public static final char COLUMNSEPARATOR
FULLY_QUAL_NAME
public static final java.lang.String FULLY_QUAL_NAME
MORETHANONE_QUERYNAV_EXCP
protected static java.lang.String MORETHANONE_QUERYNAV_EXCP
NO_CLASS_IMPL_EXCP
public static java.lang.String NO_CLASS_IMPL_EXCP
NO_CLASS_SPEC_EXCP
public static java.lang.String NO_CLASS_SPEC_EXCP
RECORDCHANGE
public static final int RECORDCHANGE
aggValue
protected transient java.lang.Object aggValue
aliasName
protected java.lang.String aliasName
changeType
protected int changeType
colNavListener
protected transient symantec.itools.db.beans.binding.event.ColumnDataEventListener colNavListener
columnIndexSet
protected boolean columnIndexSet
columnNameSet
protected boolean columnNameSet
computeRow
protected transient symantec.itools.db.beans.brl.ComputeRow computeRow
currQueryNav
protected transient symantec.itools.db.beans.binding.QueryNavigator currQueryNav
dIController
protected transient symantec.itools.db.beans.brl.adapter.ComputedColAdapter. DataItemsController dIController
dataSource
protected transient symantec.itools.db.beans.brl.binding.ComputedColumnDataSource dataSource
initialized
protected boolean initialized
outputName
protected java.lang.String outputName
queryNavRegistered
protected boolean queryNavRegistered
recNavListener
protected transient symantec.itools.db.beans.binding.event.RecordNavigateEventListener recNavListener
recSavListener
protected transient symantec.itools.db.beans.binding.event.RecordSaveEventListener recSavListener
sourceColumns
protected symantec.itools.db.beans.brl.CompColInputMember[] sourceColumns
type
protected int type
virtualColImplClass
protected java.lang.Class virtualColImplClass
virtualColImplObj
protected transient symantec.itools.db.beans.brl.ComputedColumn virtualColImplObj
ComputedColAdapter
public ComputedColAdapter()
- Default constructor
buildAliasName
public static java.lang.String buildAliasName(Class cl)
delegateComputation
protected void delegateComputation()
getAliasName
public java.lang.String getAliasName()
- Get the alias name for the business rule bean which is
used to construct the data binding name. DataBinding is of
"aliasname@outputname"
- Returns:
- String - column name
getClassNameOnly
public static java.lang.String getClassNameOnly(Class cl)
getDataBindingName
public java.lang.String getDataBindingName()
- Method to return databinding name
- Returns:
- String
getOutputName
public java.lang.String getOutputName()
- Get the name for output from the business rule bean which is
used to construct the data binding name. DataBinding is of
"aliasname@outputname"
- Returns:
- String - column name
getOutputNameNotAvailMsg
protected abstract java.lang.String getOutputNameNotAvailMsg()
getSourceColumns
public symantec.itools.db.beans.brl.CompColInputMember[] getSourceColumns()
- Get the comma separated list of columns participating in the rule
- Returns:
- array of source columns
getType
public int getType()
- Method to get the type of computed column
- Returns:
- int - type of computed column
getVirtualColImplClass
public java.lang.Class getVirtualColImplClass()
- Get the virtual column implementor class
- Returns:
- Class - name of class implementing business rule
initBeforeExecute
protected void initBeforeExecute()
initComputeRow
protected void initComputeRow(PersistentObject recordObj)
initComputeRow
protected void initComputeRow(Object value,
int columnIndex)
initDataSource
protected void initDataSource()
initSourceColumns
protected void initSourceColumns(PersistentObject recordObj)
initSourceColumns
protected void initSourceColumns(Object value,
int columnIndex)
initSourceColumns
protected void initSourceColumns(Object value,
String dataItemName)
initSourceMembers
protected void initSourceMembers()
initializeMember
protected void initializeMember(CompColInputMember compMember)
instantiateImplObj
protected void instantiateImplObj()
isAggValid
protected boolean isAggValid()
isAllInputsInitialized
protected boolean isAllInputsInitialized()
isAllSourceInputsInitialized
protected boolean isAllSourceInputsInitialized()
isBRLInterfaceImplemented
protected boolean isBRLInterfaceImplemented(Class implClass)
isColumnChangeInQBE
protected boolean isColumnChangeInQBE()
isColumnInRule
protected boolean isColumnInRule(int index)
isColumnInRule
protected boolean isColumnInRule(CompColInputMember[] arrColumns,
int index)
isColumnSpecialFeature
protected boolean isColumnSpecialFeature(String name)
isDataBindNameAvail
protected boolean isDataBindNameAvail()
isRuleOfAggregateType
protected boolean isRuleOfAggregateType()
isRuleOfDerivationType
protected boolean isRuleOfDerivationType()
isRuleOfValidationType
protected boolean isRuleOfValidationType()
performCalculation
protected void performCalculation()
performDIValueChange
protected void performDIValueChange(Object value,
String dataItemName)
processAfterColumnChangeEvent
protected abstract void processAfterColumnChangeEvent(ColumnDataEvent e)
processAfterRecordNavigateEvent
protected abstract void processAfterRecordNavigateEvent(RecordNavigateEvent e)
processAfterRecordSaveEvent
protected abstract void processAfterRecordSaveEvent(RecordSaveEvent e)
processAggregateRowChange
protected void processAggregateRowChange()
processBeforeColumnChangeEvent
protected abstract void processBeforeColumnChangeEvent(ColumnDataEvent e)
processBeforeRecordNavigateEvent
protected abstract void processBeforeRecordNavigateEvent(RecordNavigateEvent e)
processBeforeRecordSaveEvent
protected abstract void processBeforeRecordSaveEvent(RecordSaveEvent e)
processBorderRecordEvent
protected abstract void processBorderRecordEvent(RecordNavigateEvent e)
processSingletonRowChange
protected void processSingletonRowChange(RecordNavigateEvent e)
processSingletonRowChange
protected void processSingletonRowChange(ColumnDataEvent e)
processSingletonRowChange
protected void processSingletonRowChange(RecordSaveEvent e)
processSingletonRowChange
protected void processSingletonRowChange(PersistentObject recordObj)
reInitStatusForMembers
protected void reInitStatusForMembers()
reInitStatusForSourceMembers
protected void reInitStatusForSourceMembers()
resetComputedValue
protected void resetComputedValue()
setAliasName
public void setAliasName(String name)
- Set the output column name used for constructing the data
binding name.
DataBinding is of the form "aliasname@outputname"
- Parameters:
- String - - column name
setOutputName
public void setOutputName(String name)
- Set the output column name used for constructing the data
binding name.
DataBinding is of the form "aliasname@outputname"
- Parameters:
- String - - column name
setSourceColumns
public void setSourceColumns(CompColInputMember[] arr)
- Set the list of columns participating in the rule
- Parameters:
- array - of CompColMember
setVirtualColImplClass
public void setVirtualColImplClass(Class implClass) throws RuntimeException
- set the virtual column implementor class. Before setting the class
this method checks to see if the Calculation or Validation
interface is implemented
- Parameters:
- Class - - name of class implementing business rule
All Packages Class Hierarchy This Package Previous Next Index